
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">
    <title>登录</title>
    <link type="text/css" rel="stylesheet" href="{{ asset('assets/css/style.css') }}" />
    <link rel="stylesheet" href="/admin/css/font.css">
    <link rel="stylesheet" href="/admin/css/layout.css?v=1.0.0">
    <link rel="stylesheet" href="/admin/css/layoutPosition.css?v=1.0.0">
    <link rel="stylesheet" href="/admin/css/color.css?v=1.0.0">
    <link rel="stylesheet" href="/admin/css/border.css?v=1.0.0">
    <link rel="stylesheet" href="/admin/css/flex.css?v=1.0.0">
    <link rel="stylesheet" href="/admin/css/fa.css">
    <script type="text/javascript" src="/assets/js/jquery-1.10.2.min.js"></script>
    <script type="text/javascript">
        $(document).ready(function () {
            var height=$(document).height();
            $('.mainWarp').css('height',height);

        })
    </script>
</head>

<body>
<div class="mainWarp">
    <div style="width:100%; height:10%"></div>
    <div class="logoBox">
        <h2>加入我们</h2>
{#        <div class="itemBox">#}
{#            <img src="{{ asset('assets/images/icon1.png') }}" />#}
{#            <input name="" type="text" placeholder="Email"/>#}
{#        </div>#}
        <div class="itemBox">
            <img src="{{ asset('assets/images/icon4.png') }}" />
            <input id="phone" name="phone" type="text" placeholder="您的手机号"/>
        </div>
        <div class="itemBox">
            <img src="{{ asset('assets/images/icon2.png') }}" />
            <input id="password" name="password" type="password" placeholder="密码"/>
        </div>
        <div class="itemBox">
            <img src="{{ asset('assets/images/icon3.png') }}" />
            <input id="invite" name="invite" type="text" placeholder="邀请人手机号" value="{{ phone }}" disabled/>
        </div>
        <div class="btnBox">
            <input name="" type="button" value="注册" onclick="submit()"/>
        </div>
        <div class="flcc c13 tac pad10 bdtdo bdc13">
            <div class="flex1 flcc pad5">
                <div class="bdso padl10 padr10 padt5 padb5 round30">
                    <a class="c13" href="#">安卓下载</a>
                </div>
            </div>
            <div class="flex1 flcc pad5">
                <div class="bdso padl10 padr10 padt5 padb5 round30">
                    <a class="c13" href="#">苹果下载</a>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>
<script>
    function submit() {
        var data = {
            phone:$("#phone").val(),
            password:$("#password").val(),
            invite:$("#invite").val(),
        };

        $.post("{{ path('AppUserShareRegDo') }}",data,function (res,code,a) {
            if (a.status == 201) {
                alert(res.message)
            }
            if (a.status == 200) {
                alert(res.message)
            }
        })
    }
</script>
